include(FetchContent)

# 可以指定aimrt地址和版本
FetchContent_Declare(
  aimrt
  GIT_REPOSITORY https://gitee.com/robot-os/AimRT.git
  )

FetchContent_GetProperties(aimrt)

if(NOT aimrt_POPULATED)
  # 设置AimRT的一些编译选项
  set(AIMRT_BUILD_TESTS OFF CACHE BOOL "")
  set(AIMRT_BUILD_EXAMPLES OFF CACHE BOOL "")

  FetchContent_MakeAvailable(aimrt)
endif()


#list(APPEND CMAKE_PREFIX_PATH "/home/wxy/AimRT/build/install")
#list(APPEND CMAKE_MODULE_PATH "/home/wxy/AimRT/build/install/cmake")

#include(GetFmt)
#include(GetLibUnifex)
#include(GetProtobuf)
#include(GetYamlCpp)
#include(GetJsonCpp)

#find_package(ros2_plugin_proto REQUIRED)
#find_package(aimrt REQUIRED)